package com.xiaolin.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaolin.admin.model.dto.SysOrganizationTree;
import com.xiaolin.admin.model.entity.SysOrganization;

import java.util.List;

/**
 * <p>
 * 组织架构表 服务类
 * </p>
 *
 * @author xiaolin
 * @since 2024-07-12
 */
public interface SysOrganizationService extends IService<SysOrganization> {

    List<SysOrganizationTree> getOrgTree(SysOrganization organization);

    void checkUnique(SysOrganization organization);

    void checkOrgRelation(Integer orgId);

    void checkUserRelation(Integer orgId);

    boolean addOrg(SysOrganization organization);

    SysOrganization getOrg(Integer id);

    boolean updateOrg(SysOrganization organization);

    boolean deleteOrg(Integer id);

    List<Integer> getUserOrgDataPerms();
}
